const routes = [
    {
        path: '/',
        redirect: '/Login',
    },
    {
        path: '/Home',
        component: () => import('../views/Home/Home'),
        children: [{
            path: '/Home',
            redirect: '/Housing'
        },
        {
            path: '/Housing',
            title: '房源管理',
            use: ['管理员'],
            component: () => import('../views/Housing/Housing')
        },
        {
            path: '/Live',
            title: '直播管理',
            use: ['管理员','员工'],
            component: () => import('../views/Live/Live')
        },
        {
            path: '/Group',
            title: '团购管理',
            use: ['员工','管理员'],
            component: () => import('../views/Group/Group')
        },
        {
            path: '/Audit',
            title: '审核管理',
            use: ['管理员'],
            component: () => import('../views/Audit/Audit')
        },
        {
            path: '/Order',
            title: '订单管理',
            use: ['管理员'],
            component: () => import('../views/Order/Order')
        },
        {
            path: '/Information',
            title: '资讯管理',
            use: ['管理员'],
            component: () => import('../views/Information/Information')
        },
        {
            path: '/Broker',
            title: '经纪人管理',
            use: ['管理员'],
            component: () => import('../views/Broker/Broker')
        },
        ]
    },
    {
        path: '/Detail/:id',
        title: '直播详情',
        component: () => import('../views/Detail/Detail')
    },
    
    {
        path: '/Login',
        component: () => import('../views/Login/Login')
    },
]

export default routes